<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
   var name = prompt("请输入您的姓名：");
   alert("您好，" + name + "！欢迎您！");
</script>
<body>
    

</body>
</html>